#include "worker.h"
#include <qmath.h>
#include <QDebug>

Worker::Worker(QObject *parent) : QObject(parent)
{

}

void Worker::do_caculate(int x, int y){
    qDebug() << "worker thread start...";

    emit caculate_over(pow(x, y));

    qDebug() << "worker thread end...";

    return;
}
